package com.tjetc.dao;

import com.tjetc.domain.History;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface HistoryMapper {
    List<History> listHistory(Integer id);

    @Insert("insert into history (adopter_id, animal_id, adoption_time) values (#{adopterId},#{animalId},#{adoptionTime})")
    void insert(History setAdoptionTime);
}
